local StoryBehavior = class("StoryBehavior")

function StoryBehavior:ctor()
    self._isDone = false
end

function StoryBehavior:setActuator(actuator)
    self._actuator = actuator
end

function StoryBehavior:getActuator()
    return self._actuator
end

function StoryBehavior:setParams(params)
    self._params = params
end

function StoryBehavior:getParams()
    return self._params
end

function StoryBehavior:tick()
    if self:isDone() then
        return
    end
    self:_active()
end

function StoryBehavior:_active()
end

function StoryBehavior:setDone(done)
    self._isDone = done
end

function StoryBehavior:isDone()
    return self._isDone
end

return StoryBehavior
